<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@include file="base.jsp" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>${attr.webTitle}</title>
<link href="${path}/admin123/css/main.css" rel="stylesheet" type="text/css" >
<link rel="stylesheet" type="text/css" href="${path}/js/jquery/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="${path}/js/jquery/easyui/themes/icon.css">
<script src="${path}/js/jquery/easyui/jquery-1.8.0.min.js"></script>
<script src="${path}/js/jquery/easyui/jquery.easyui.min.js"></script>
<!-- rsa -->
<script type="text/javascript" src="${path}/js/rsa_js/RSA.js"></script>
<script type="text/javascript" src="${path}/js/rsa_js/BigInt.js"></script>
<script type="text/javascript" src="${path}/js/rsa_js/Barrett.js"></script>
<script type="text/javascript" src="${path}/js/rsa_js/myrsa.js"></script>
<script type="text/javascript">
$(function(){
	submit1();
	//$('#win').window('open');
})

function onEnterPressDown(){
	if(event.keyCode=='13'){
		submit1();
	}
} 
function submit1(){

	  var st = $(this).attr('enable');
	  if(st=='0'){
		  return;
	  }
	  $(this).attr('enable','0');
	  
	  document.form1.submit();
}
</script>
</head>
<body onkeydown="onEnterPressDown()" class="font14">
   <div style="color:red; text-align: center;">
   		<s:property value="#attr.result"/>
   </div> 
   <div id="win" class="easyui-window" title="${attr.webTitle}-登录[电子邮箱校验]" style="width:450px;display: none;"> 
	   <s:form name="form1" action="emp_emailValidate.action" namespace="/admin123" theme="simple" cssStyle="padding:10px 20px 10px 40px;">
	      <table style="line-height: 35px;">
	      	<tr>
	      		<td>用户名： </td>
	      		<td>
	      			<s:property value="#attr.username"/>  
	      			<s:hidden
	      				name="username"
	      				value="%{#attr.username}"
	      			/>
	      		</td>
	      	</tr>
	      	<tr>
	      		<td>电子邮箱： </td>
	      		<td><s:property value="#attr.email"/>  </td>
	      	</tr>
	      	<tr>
	      		<td>动态校验码：</td>
	      		<td><input type="text" name="validateCode" value="" class="easyui-validatebox" data-options="required:true" maxlength="40" size="30"></td>
	      	</tr>
	      	<tr>
	      		<td colspan="2" align="center">
			      <a href="#" class="easyui-linkbutton" icon="icon-ok" onclick="javascript:submit1();">提交</a>
			      <a href="indexBefore1.jsp" class="easyui-linkbutton" icon="icon-add" >退出</a> 
	      		</td>
	      	</tr>
	      	<tr>
	      		<td style="color: red;" colspan="2">注：系统已自动向您的电子邮箱发送了身份校验码，请及时查收。</td>
	      	</tr>
	      </table>
	   </s:form>
   </div>
</body>
</html>
